package com.canal.admin.transfer.req.data;

/**
 * 历史数据查询条件
 * @author yangbo
 * @date 2020-07-22 21:02
 * @description
 * @since
 */
public class HistoryDataConditions {

    /** 渠道商id */
    private Long channelId;

    /** 渠道号id */
    private Long channelItemId;

    /** 起始时间 */
    private String startDate;

    /** 结束时间 */
    private String endDate;

    private Integer pageNo;

    private Integer pageSize;

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public Long getChannelItemId() {
        return channelItemId;
    }

    public void setChannelItemId(Long channelItemId) {
        this.channelItemId = channelItemId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        pageNo = pageNo == null || pageNo < 0 ? 1 : pageNo;
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        pageSize = pageSize == null || pageSize < 0 ? 1 : pageSize;
        this.pageSize = pageSize;
    }
}
